package com.gz.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @TableName t_order
 */
@TableName(value ="t_order")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    @TableId(type = IdType.INPUT)
    private String id;
    private String orderNum;
    private Double totalPrice;
    private Long userId;
    private Integer addressId;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    private Integer state;
}